require.config({
	baseUrl: "/original-form-designer/assets/js/lib",
	waitSeconds: 0, //永不超时
	paths: {
		app: "..",
		jQuery: "jquery/jquery",
		jquery: "jquery/jquery",
		layer: "layer-v3.2.0/layer/layer",
		jqueryui: "jquery/jquery-ui-1.13.0/jquery-ui",
		bootstrap: "bootstrap-3.4.1/js/bootstrap",
		//colorPicker: "bootstrap-colorpicker/bootstrap-colorpicker",
		bootstrapFormHelper: "BootstrapFormHelpers/js/bootstrap-formhelpers",
		bootstrapValidator: "BootstrapValidator/dist/js/bootstrapValidator",
		util: "../util",
		components: "../components",
		config: "../util/config",
		flatpickr: "flatpickr",
		data: "../data",
		models: "../models",
		helper: "../helper",
		templates: "../templates",
		views: "../views"
	},
	shim: {
		'config': {
			exports: 'config'
		},
		'underscore': {
			exports: '_'
		},
		"bootstrap": {
			deps: ["jquery"],
			exports: "bootstrap"
		},
		'bootstrapFormHelper': {
            deps: [ 'jquery' ],
            exports: 'bootstrapFormHelper'
        },
		'bootstrapValidator': {
            deps: [ 'jquery' ],
            exports: 'bootstrapValidator'
        },
       	"flatpickr/zh": {
       		deps: [ 'flatpickr/flatpickr' ],
            exports: 'flatpickrZh'
       	}
	}
});

//在执行初始化前，加载css列表
require(["util/cssmanager"], function(){
	//优先加载样式文件，然后调用入口函数
	require(['app/app']);
});


